Hello Sentdex, I have a problem with some of the code in your PyGame tutorials for Bucky on Youtube in the 9th tutorial. The problem is that when I run the code no errors are reported and the window automatically closes:
You must be logged in to post. Please login or register an account.
Okay, so you just gotta think your way though this.
What are the reasons for the game to close? Maybe an error, but there doesn't seem to be one. Why else would the game close? The only other reason for the game to close is we get kicked outta this While loop. Why might that happen? Well, your code has one place only where this could happen.
...so start there. You could test by just simply commenting out, or removing that line, just to see if it is indeed the culprit. From there, start working through the logic of that line if that's the problem.
-Harrison 7 years ago
You must be logged in to post. Please login or register an account.
Check your 'x's and 'y's :-)
-scholzie 7 years ago
You must be logged in to post. Please login or register an account.